package com.ckzp.jfinal.system.po;

import com.ckzp.core.json.JsonUtil;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * Created by 51594 on 2022/7/27.
 */
public class WebUser {
    /**
     * 登陆ID,主键
     */
    private String loginID = "";
    /**
     * 用户编号ID
     */
    private String empID = "";
    /**
     * 密码
     */
    private String password = "";
    /**
     * 用户名
     */
    private String empName = "";

    /**
     * Email地址
     */
    private String email = "";
    /**
     * 姓别
     */
    private String sex = "";
    /**
     * 部门名称
     */
    private String deptName = "";
    /**
     * 部门编号
     */
    private String deptid = "";
    /**
     * 登陆次数
     */
    private int loginTimes = 0;
    /**
     * 上次登陆时间
     */
    private Date lastLoginDate = null;

    private int userSex = 1;
    /**
     * 登陆时间
     */
    private Date loginDate = new Date();

    private String currMmid = "0";

    private String skinID = "default";
    /**
     * 拥有角色
     */
    private String[] roles = null;


    /**
     * 拥有岗位
     */
    private String[] posts = null;


    private String user_type = "USER";
    private String jwt = "";


    public String getLoginID() {
        return loginID;
    }

    public void setLoginID(String loginID) {
        this.loginID = loginID;
    }

    public String getEmpID() {
        return empID;
    }

    public void setEmpID(String empID) {
        this.empID = empID;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptid() {
        return deptid;
    }

    public void setDeptid(String deptid) {
        this.deptid = deptid;
    }

    public int getLoginTimes() {
        return loginTimes;
    }

    public void setLoginTimes(int loginTimes) {
        this.loginTimes = loginTimes;
    }

    public Date getLastLoginDate() {
        return lastLoginDate;
    }

    public void setLastLoginDate(Date lastLoginDate) {
        this.lastLoginDate = lastLoginDate;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

    public String[] getRoles() {
        return roles;
    }

    public void setRoles(String[] roles) {
        this.roles = roles;
    }

    public String getCurrMmid() {
        return currMmid;
    }

    public void setCurrMmid(String currMmid) {
        this.currMmid = currMmid;
    }

    public String getSkinID() {
        return skinID;
    }

    public void setSkinID(String skinID) {
        this.skinID = skinID;
    }

    public int getUserSex() {
        return userSex;
    }

    public void setUserSex(int userSex) {
        this.userSex = userSex;
    }


    public String getUser_type() {
        return user_type;
    }

    public void setUser_type(String user_type) {
        this.user_type = user_type;
    }

    public String getJwt() {
        return jwt;
    }

    public void setJwt(String jwt) {
        this.jwt = jwt;
    }

    public String[] getPosts() {
        return posts;
    }

    public void setPosts(String[] posts) {
        this.posts = posts;
    }

    /**
     * @return
     */
    public String toJson() {
        return JsonUtil.toJsonString(this);
    }
}

